package factory.simple.pizza;

/**
 * @Author chenyeqing
 * @Date 2021/7/7 22:40
 */
public abstract class Pizza {

    // 披萨的名字
    private String name;

    // 准备原材料
    public abstract void prepare();

    public void bake() {
        System.out.println(name + " baking");
    }

    public void cut() {
        System.out.println(name + " cutting");
    }

    public void box() {
        System.out.println(name + " boxing");
    }

    public void setName(String name) {
        this.name = name;
    }
}
